/*! *********************************************************************************
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
* \file
*
* SPDX-License-Identifier: BSD-3-Clause
********************************************************************************** */



#include "UART_Adapter.h"



/*! *********************************************************************************
*************************************************************************************
* Private memory declarations
*************************************************************************************
********************************************************************************** */

//static LPUART_Type * mLpuartBase[] = LPUART_BASE_PTRS;
//static uartState_t * pLpuartStates[FSL_FEATURE_SOC_LPUART_COUNT];  /* 从OOP的角度看，pLpuartStates与其他类型串行通行外设的软件（如mI2cStates和gpaSpiState）实体一样，它们是“多态关系”，只有在实际用到某个实体时才会对其进行初始化操作 */
//static void LPUART_Common_ISR(uint32_t instance);

UsartCfg_t   UsartCfg = {
                          .USART_BaudRate = 9600,
                          .USART_WordLength = 8,
                          .USART_StopBits = 1,
                          .USART_Parity = USART_Parity_Odd,
                          .USART_Mode = USART_Mode_Rx | USART_Mode_Tx,
                          .USART_HardwareFlowControl = USART_HardwareFlowControl_None
                        };



/*! *********************************************************************************
*************************************************************************************
* Public functions
*************************************************************************************
********************************************************************************** */

/************************************************************************************/
/*                                     USART                                       */
/************************************************************************************/
uint32_t st_USART_Initialize(uint32_t instance, uartState_t *pState)
{
    uint32_t status = gUartSuccess_c;
   
    return status;
}

uint32_t st_USART_ReInit(uint32_t instance)
{
    uint32_t status = gUartSuccess_c;
    
    return status;
}

/************************************************************************************/
uint32_t st_USART_SetBaudrate(uint32_t instance, uint32_t baudrate)
{
    uint32_t status = gUartSuccess_c;
 
    return status;
}

/************************************************************************************/
uint32_t st_USART_SendData(uint32_t instance, uint8_t* pData, uint32_t size)
{
    uint32_t status = gUartSuccess_c;
    
    return status;
}

/************************************************************************************/
uint32_t st_USART_ReceiveData(uint32_t instance, uint8_t* pData, uint32_t size)
{
    uint32_t status = gUartSuccess_c;
    
    return status;
}

/************************************************************************************/
uint32_t st_USART_InstallRxCalback(uint32_t instance, uartCallback_t cb, uint32_t cbParam)
{
    uint32_t status = gUartSuccess_c;
    
    return status;
}

/************************************************************************************/
uint32_t st_USART_InstallTxCalback(uint32_t instance, uartCallback_t cb, uint32_t cbParam)
{
    uint32_t status = gUartSuccess_c;

    return status;
}

/************************************************************************************/
uint32_t st_USART_IsTxActive(uint32_t instance)  
{
    uint32_t status = 0;

    return status;
}






/*! *********************************************************************************
*************************************************************************************
* Private functions
*************************************************************************************
********************************************************************************* */

/************************************************************************************/


/************************************************************************************/



